package com.wuzhiming.istudy.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Course
 * @Description: 课程实体
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/2/25 18:46
 */

@Data
public class Course implements Serializable {
    private static final long serialVersionUID = -22440854516264684L;

    /**
     * 主键id
     * */
    private Integer id;

    /**
     * 课程类别id
     * */
    private Integer courseTypeId;

    private CourseType courseType;

    /**
     * 课程阶段id
     * */
    private Integer courseStageId;

    private CourseStage courseStage;
    /**
     * 课程url
     * */
    private String courseUrl;

    /**
     * 课程封面图片
     * */
    private String imgUrl;


    /**
     * 课程名
     * */
    private String title;

    /**
     * 课程简介
     * */
    private String introduce;

    /**
     * 课程浏览量
     * */
    private Integer readCount;

    /**
     * 课程状态
     * */
    private Integer status;

    /**
     * 课程推出时间
     * */
    private Date publishTime;

    /**
     * 课程最近修改时间
     * */
    private Date recentEdit;

    /**
     * 课程时长
     * */
    private String courseTime;

    /**
     * 课程节数
     * */
    private Integer courseSections;

    /**
     * 课程排序
     * */
    private Integer sort;

    public Course(){

    }

    public Course(Integer id,Integer readCount){
        this.id = id;
        this.readCount = readCount;
    }
}
